package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 tea_shop_order
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
public class TeaShopOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    private Long id;

    /** 会员号 */
    @Excel(name = "会员号")
    private Long customerId;

    /** 茶店编号 */
    @Excel(name = "茶店编号")
    private Long teaShopId;

    /** 取餐码 */
    @Excel(name = "取餐码")
    private Long foodDeliveryCode;

    /** 购买内容 */
    @Excel(name = "购买内容")
    private String content;

    /** 总价格 */
    @Excel(name = "总价格")
    private Long price;

    /** 发货方式 */
    @Excel(name = "发货方式")
    private String modeOfDespatch;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    private Date dateStart;

    private Date dateEnd;

    private String teaShopAddress;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setTeaShopId(Long teaShopId) 
    {
        this.teaShopId = teaShopId;
    }

    public Long getTeaShopId() 
    {
        return teaShopId;
    }
    public void setFoodDeliveryCode(Long foodDeliveryCode) 
    {
        this.foodDeliveryCode = foodDeliveryCode;
    }

    public Long getFoodDeliveryCode() 
    {
        return foodDeliveryCode;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setModeOfDespatch(String modeOfDespatch) 
    {
        this.modeOfDespatch = modeOfDespatch;
    }

    public String getModeOfDespatch() 
    {
        return modeOfDespatch;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }


    public Date getDateStart() {
        return dateStart;
    }

    public void setDateStart(Date dateStart) {
        this.dateStart = dateStart;
    }

    public Date getDateEnd() {
        return dateEnd;
    }

    public void setDateEnd(Date dateEnd) {
        this.dateEnd = dateEnd;
    }

    public String getTeaShopAddress() {
        return teaShopAddress;
    }

    public void setTeaShopAddress(String teaShopAddress) {
        this.teaShopAddress = teaShopAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerId", getCustomerId())
            .append("teaShopId", getTeaShopId())
            .append("foodDeliveryCode", getFoodDeliveryCode())
            .append("content", getContent())
            .append("price", getPrice())
            .append("modeOfDespatch", getModeOfDespatch())
            .append("date", getDate())
                .append("dateStart", getDateStart())
                .append("dateEnd", getDateEnd())
                .append("teaShopAddress", getTeaShopAddress())
            .toString();
    }
}
